Skip to content

fix: Glibc errors#244

Merged
daffinito merged 4 commits into
mainfrom
daffi/fix-glibc-errors
Jul 9, 2025
Merged

fix: Glibc errors#244
daffinito merged 4 commits into
mainfrom
daffi/fix-glibc-errors

Conversation

@daffinito

Copy link
Copy Markdown
Contributor

Issue

./nrdiag: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./nrdiag)
./nrdiag: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./nrdiag)

Goals

Resolve glibc dependency issues

Implementation Details

In go 1.20, there was a change in the default value for CGO_ENABLED when it is unset. See golang/go#58550 (comment), specifically:

It's true that in 1.19 if you built the tools with CGO_ENABLED=0, then the tools would in turn default to building programs with CGO_ENABLED=0. I believe that that is no longer true in 1.20.

Setting CGO_ENABLED=0 in the build script to ensure it is disabled and we are always using pure go

How to Test

I tested with CentOS 7.9 with kernel 3.10.0-1160.119.1.el7.x86_64

@mikayla-mcgraw-newrelic mikayla-mcgraw-newrelic left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@daffinito daffinito merged commit 0dffe76 into main Jul 9, 2025
17 checks passed
daffinito added a commit that referenced this pull request Jul 10, 2025
## Task Updates

* A new command line option `-ac-agents-namespace` was added for specifying a namespace for Agent Control agents ([#243](#243)). The following tasks have been updated to use the new namespace:
  * K8s/Resources/Config
  * K8s/Resources/Daemonset
  * K8s/Resources/Deploy
  * K8s/Resources/Pods

## Fixes

* GLIBC related errors such as `/lib64/libc.so.6: version 'GLIBC_2.34' not found` have been resolved ([#244](#244)).
@daffinito daffinito mentioned this pull request Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants